package controllers;

import java.util.List;

import models.Sale;
import play.mvc.Controller;

public class Types extends Controller {

    public static void index() {
        render();
    }

    public static void catalogList(long typeID) {
    	
    	List<Sale> saleList = Sale.getSales(0,10,typeID);
    	
    	//销售分类列表
    	if(null!=saleList&&saleList.size()>0){
    		
    		Sale saleCala=saleList.get(0);
    		int saleSize = saleList.size();
    		
    		renderArgs.put("saleCala", saleCala);
    		renderArgs.put("saleSize", saleSize);
    	}
    	
    	renderArgs.put("saleList", saleList);
    	
    	render();
    }
}
